<?php

require_once 'global.php';

$default_uri=array('index','view','modify','create','remove','stockconfirm','stockcancel','recaches','getPurchasesProductList','audit','getSupplies','getOrderProducts','confirm','updatePrice','orderProducts');


if(in_array($_POST['action'], $default_uri)){
    $uri ='purchases/'.$_POST['action'];
}
elseif(in_array($_GET['uri'], $default_uri)){
    $uri ='purchases/'.$_GET['uri'];
}else{
    $uri ='purchases/index';
}



require_once 'index.php';

?>